import { createWebHashHistory, createRouter } from "vue-router";

export const routes = [
  {
    path: "/",
    component: () => import("@/layout/index.vue"),
    redirect: "/index",
    name: "layout",
    children: [],
  },
  {
    path: "/login",
    component: () => import("@/pages/Login/index.vue"),
  },
  {
    path: "/:catchAll(.*)",
    name: "NotFound",
    component: () => import("@/pages/404.vue"),
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
